<c:if test="${hasDetail}">
	<lfw:spliter divideSize="200" boundMode="px" id="spliter2" orientation="v">
		<lfw:spliterPanelOne>
			<lfw:layout type="card" cardId="billCard" border="0">
				<lfw:layoutPanel cardId="card1">
					<lfw:tab id="headTab">
						<c:forEach var="item" items="${headTab.itemList}">
							<lfw:tabitem id="${item.id}">
								<lfw:grid id="headTab_${item.id}_grid" />
							</lfw:tabitem>
						</c:forEach>
					</lfw:tab>	
				</lfw:layoutPanel>	
				<lfw:layoutPanel cardId="card2">
					<lfw:tab id="headTabCard">
						<c:forEach var="item" items="${headTabCard.itemList}">
							<lfw:tabitem id="${item.id}">
								<lfw:form id="headTab_${item.id}_form" />
							</lfw:tabitem>
						</c:forEach>
					</lfw:tab>	
				</lfw:layoutPanel> 
			</lfw:layout>
		</lfw:spliterPanelOne>
		<lfw:spliterPanelTwo>
			<lfw:tab id="tailTab">
				<c:forEach var="item" items="${tailTab.itemList}">
					<lfw:tabitem id="${item.id}">
						<lfw:border width="1" marginLeft="3">
							<lfw:form id="tailTab_${item.id}_form"/>
						</lfw:border>
					</lfw:tabitem>
				</c:forEach>
			</lfw:tab>
		</lfw:spliterPanelTwo> 
	</lfw:spliter>
</c:if>

<c:if test="${!hasDetail}">
	<lfw:layout type="card" cardId="billCard" border="0">
		<lfw:layoutPanel cardId="card1">
			<lfw:tab id="headTab">
				<c:forEach var="item" items="${headTab.itemList}">
					<lfw:tabitem id="${item.id}">
						<lfw:grid id="headTab_${item.id}_grid" />
					</lfw:tabitem>
				</c:forEach>
			</lfw:tab>	
		</lfw:layoutPanel>	
		<lfw:layoutPanel cardId="card2">
			<lfw:tab id="headTabCard">
				<c:forEach var="item" items="${headTabCard.itemList}">
					<lfw:tabitem id="${item.id}">
						<lfw:form id="headTab_${item.id}_form" />
					</lfw:tabitem>
				</c:forEach>
			</lfw:tab>	
		</lfw:layoutPanel> 
	</lfw:layout>
</c:if>	